package com.dubbo;

import java.sql.Driver;

/**
 * @author caoqianhuan
 * @date 2022/10/14
 * @Description: 虚拟机参数 XX:+PrintGCDetails -verbose:gc
 */

public class StringTableGC {
    public static void main(String[] args) {
        for (int i = 0; i < 10000; i++) {
            //可以看到会触发垃圾回收
            String.valueOf(i).intern();
        }
    }
}
